package com.ruoyi.system.domain.vo.order;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.annotation.Excel;
import lombok.Data;

import javax.naming.Name;
import java.math.BigDecimal;
import java.util.Date;

/**
 * 订单列表Vo
 */
@Data
public class XsOrderListVo {

    private Integer id;

    /**
     * 订单id
     */
    @Excel(name = "订单ID", width = 20)
    private String orderId;

    /**
     * Acookie订单唯一ID
     */
    @Excel(name = "订单编号", width = 20)
    private String acookieId;

    /**
     * 买家OpenUid
     */
    @Excel(name = "买家ID")
    private String buyerOpenUid;

    /**
     * 订单金额
     */
    @Excel(name = "订单金额", suffix = "￥")
    private String orderMoney;

    /**
     * 商品标题
     */
    @Excel(name = "商品标题")
    private String title;

    /**
     * 付款金额
     */
    @Excel(name = "实付金额", suffix = "￥")
    private BigDecimal payment;

    /**
     * 订单支付时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date payTime;

    /**
     * 实收价
     */
    @Excel(name = "实收价", suffix = "￥")
    private BigDecimal actualPayment;

    /**
     * 实收价
     */
    @Excel(name = "放单价", suffix = "￥")
    private BigDecimal putPayment;

    /**
     * 订单状态
     */
    @Excel(name = "订单状态", readConverterExp = "1=未派单,2=进行中,3=待验收,4=已完成,5=是否修改/申请退款,6=结单,7=写手结算")
    private String status;

    /**
     * 订单来源(1淘宝、2天猫、3微信、4抖音、5拼多多、6对公、7线下、8内部、9其他渠道)
     */
//    @Excel(name = "订单来源", readConverterExp = "1=淘宝,2=天猫,3=微信,4=抖音,5=拼多多,6=对公,7=线下,8=内部,9=其他渠道")
    @Excel(name = "订单来源")
    private String orderSource;

    /**
     * 店铺名
     */
    @Excel(name = "店铺")
    private String storeName;

    /**
     * 客服编号
     */
    @Excel(name = "客服编号")
    private String serviceCode;

    /**
     * 订单排名
     */
    private String oRank;

    /**
     * 拼接 订单客服编号（serviceCode + “--” + oRank）
     */
//    @Excel(name = "客服编号")
    private String code;

    /**
     * 写手昵称
     */
    @Excel(name = "写手昵称")
    private String writerNickName;

    /**
     * 是否报账
     */
    @Excel(name = "是否报账", readConverterExp = "1=报,2=未报,3=重复报账,4=不报")
    private String checkSheet;

    /**
     * 结单日期
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "结单日期", dateFormat = "yyyy-MM-dd")
    private Date settlementDate;

    /**
     * 绩效月份
     */
    @Excel(name = "绩效月份", dateFormat = "yyyy-MM-dd")
    private String performance;

    /**
     * 订单创建时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;

    /**
     * 创建人
     */
    private String createBy;
    /**
     * 退款金额
     */
    @Excel(name = "退款金额", suffix = "￥")
    private String refund;

    @Excel(name = "售后退款金额", suffix = "￥")
    private String afterRefund;

    /**
     * 是否刷单
     */
    @Excel(name = "是否刷单", readConverterExp = "1=是,2=否")
    private String ifBrushing;


    /**
     * 线下退款金额
     */
    private BigDecimal offlineRefundAmount;

    /**
     * 付款截图
     */
    private String paymentScreenshot;



//    @Excel(name = "重复结算（次）", suffix = "次")
    private Long repetitionCount;

    /** 交易修改时间 */
    private String modified;

    /** 是否结算（1是，2否） */
    private String ifBalance;

    /** 备注 */
    private String remark;

    /** 是否打开(1关，2开) 报账/结算 */
    private String ifOpen;

    /** 客服垫付金额 */
    private String writerPaidPrice;
    /** 写手已收定金 */
    private String depositReceived;
    /** 是否需要审核（1是，2否） */
    private String ifAudit;

    //是否结算给客服、写手
    private String settle;

    /**
     * 图片
     */
    private String picRrDic;

    //客服垫付金额审核 0 未审核 1审核
    private Long serviceAudit;
    //写手已结金额审核 0 未审核 1审核
    private  Long writerAudit;
    //线下退款金额审核 0 未审核 1审核
    private Long offlineAudit;


    /**
     * 客服名称
     */
//    @Excel(name = "客服名称")
//    private String serviceName;

    /**
     * 写手id
     */
//    private Integer writerId;

    /**
     * 写手真实姓名
     */
//    private String writerName;

}
